std::basic_ostream::put

From Cppreference

Jump to: navigation, search
​basic_ostream& put( char_type ch );

Writes character ch to the output stream. If ​good() != true, ​setstate(failbit) is called and the function returns. If inserting fails, ​setstate(badbit) is called and the function returns.

Contents

Parameters

ch - character to write

Return value

*this​

Example

See also

operator<<
inserts formatted data
(public member function)
write
inserts blocks of characters
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages